-- gamble
-- created by panyl
-- 地牢格子：赌桌
return {
    autoFight = function(grid)
        local pos = grid:getPos();

        -- 赌博记录
        local record = DungeonTentM.getGambleRecord();
        if not record then
            -- 随机赌注
            local wargers = DungeonTentM.getGambleWagerValue();
            local wagerValue = wargers[math.random(#wargers)];
            return DungeonActionM.go("do_gamble", pos, wagerValue);
        end

        return false;
    end,
};
